package com.myproject.musicrecommendationsystem.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
@Data
@TableName("playlistSong")
public class PlaylistSong {
    private int id; // 可以是自增的ID，或者是一个复合主键
    private int playlistId; // 歌单ID
    private int songId; // 歌曲ID
    private int order; // 歌曲在歌单中的排序（可选）
    private Date addedTime; // 歌曲添加到歌单的时间（可选）

    public PlaylistSong(int id, int playlistId, int songId, int order, Date addedTime) {
        this.id = id;
        this.playlistId = playlistId;
        this.songId = songId;
        this.order = order;
        this.addedTime = addedTime;
    }
    public PlaylistSong() {
    }

    @Override
    public String toString() {
        return "PlaylistSong{" +
                "id=" + id +
                ", 歌单id=" + playlistId +
                ", 歌曲id=" + songId +
                ", 排序=" + order +
                ", 添加事件=" + addedTime +
                '}';
    }
}

